<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="/res/third/bootstrap3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="/res/third/easyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="/res/third/easyUI/themes/icon.css">
<script src="/res/common/js/jquery.1.9.1.min.js" type="text/javascript"></script>
<script src="/res/third/artDialog/jquery.artDialog.js" type="text/javascript"></script>
<script src="/res/third/validate/jquery.validate.js" type="text/javascript"></script>
<script src="/res/third/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/res/third/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
	.tabs-panels{
		height: 100%;}
</style>
<script type="text/javascript">
	$(function(){
		$("#channelTree").tree({
			dnd : true,
		    url:'/content/v_tree.do',
			onBeforeExpand:function(node,param){
				//$("#channelTree").tree('options').url = '/category/v_tree.do?pid='+node.id;
			},
			onClick : function(node) {
				var paret = $("#channelTree").tree('getParent', node.target);
				var preview = 'false';
				if(paret && paret.code == 'news') {
					preview = 'true';
				}
				$.messager.progress({
					text : "loadding",
					interval : 100
				});
				$("#center").load('/content/v_list.do?so_channelId=' + node.id + '&preview=' + preview, function(){
					$.messager.progress('close');
					 $("#easyui-aaa").layout('resize', {});
				});
			}
		});
		
	});
</script>
</head>

<body>
<!-- 新建 -->
<div id="create"  style="display: none;"   >
	<form  class="form-horizontal" name="categoryFormName"  role="form"   >
	<input type="hidden"  name="proCategory.id"  id="parent_id"   />
	<input type="hidden"  name="id"  id="id" />
	  <div class="form-group">
	    <label for="channelName" >类目名称</label>
	      <input class="form-control" id="name" name="name"  required />
	  </div>
	  <div class="form-group">
	    <label for="code" >类目编码</label>
	      <input  class="form-control" id="code"  name="code" required />
	  </div>
	  <div class="form-group">
	    <label for="code" >类目类别</label>
	    <select class="form-control" name="cateType" id="cateType">
	    </select>
	  </div>
	  <div class="form-group">
	    <div style="text-align: center;" >
	      <button  onclick="subc();"  type="button" class="btn btn-info">提交</button>
	    </div>
	  </div>
	</form>
</div>


	<div id="easyui-aaa" class="easyui-layout" style="width:100%;height:100%;">
		<div data-options="region:'west',split:false" title="栏目树" style="width:200px;">
			<ul class="" style="padding:10px" id="channelTree">
			</ul>
		</div>
		<div id="tt" data-options="region:'center',split:false" class="easyui-tabs"   border="false" >
			 <div id="center" title="新闻" >  
             </div>
		</div>
	</div>
</body>
</html>